import request from '@/utils/request'
import Vue from 'vue'

// 退款列表接口
export const getList = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.index,
        method: 'post',
        data,
    })
}
// batchRefund
export const batchRefund = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.batchRefund,
        method: 'post',
        data,
    })
}
// getBatchList
export const getBatchList = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.getBatchList,
        method: 'post',
        data,
    })
}

// refundEdit
export const refundEdit = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.refundEdit,
        method: 'post',
        data,
    })
}
export const RefundDel = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.RefundDel,
        method: 'post',
        data,
    })
}
// getBatchDetailList
export const getBatchDetailList = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.getBatchDetailList,
        method: 'post',
        data,
    })
}
// exportrefundList
export const exportrefundList = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.exportrefundList,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// exportBatchDetailList
export const exportBatchDetailList = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.exportBatchDetailList,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// refundListLog
export const refundListLog = data => {
    return request({
        url: Vue.prototype.$api.orderRegister.refundListLog,
        method: 'post',
        data,
    })
}